Skip to main content

driverNames

Type

function

Summary

Returns a list of available serial drivers.

Syntax

the driverNames
driverNames()

Description

Use the driverNames function to find out which serial drivers can be used with the open driver, read from driver, write to driver, and close driver commands.

Usually, you use the callout file name--the third item in the line for the driver you want--with the open driver, read from driver, write to driver, and close driver commands.

Examples

put firstItems(the driverNames) into menu "Choose a driver:"

Value

NameTypeDescription

return

The driverNames function returns a list of drivers, one per line. Each line consists of three items, separated by commas:

  1. The name of the driver.
  2. The name and location of the TTY device file for the driver.
  3. The name and location of the callout device (CU) file for the driver.

the result

If the driverNames function is called on a Mac OS, Unix, or Windows system, it returns empty and the result returns "not supported".

glossary: Unix, Windows, command, return, Mac OS, device driver

keyword: items, line

command: open driver, write to driver, read from driver, close driver

control structure: function

function: result

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?